package com.card.controller;


import com.baomidou.mybatisplus.extension.api.ApiController;
import com.card.entity.BackgroundImg;
import com.card.service.BackgroundImgService;
import com.card.utils.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * 背景图
 */
@RestController
@RequestMapping("backgroundImg")
public class BackgroundImgController extends ApiController {

    @Resource
    private BackgroundImgService backgroundImgService;

    @GetMapping("list")
    public Result<List<BackgroundImg>> list() {
        return Result.success(backgroundImgService.list());
    }

}

